package com.sunlands.zlcx.usercenter.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author zhaocg
 * @create 2019/8/8 18:57
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "打卡用户排行VO")
public class DurationShowSummaryVO implements Serializable {


    private static final long serialVersionUID = -6814476484510605943L;
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "排行")
    private Integer leaderBoard; //排行

    @ApiModelProperty(value = "用户名称")
    private String name;

    @ApiModelProperty(value = "头像")
    private String avatarUrl;

    @ApiModelProperty(value = "学习目标")
    private String currentLearnTargetName;

    @ApiModelProperty(value = "学士时长")
    private Long sumMinutes; //总时长

    @ApiModelProperty(value = "打卡排行榜")
    List<DurationShowSummaryVO> showSummaryVOList;


    public Integer getLeaderBoard() {
        return leaderBoard != null ? leaderBoard : 0;
    }

    public Long getSumMinutes() {
        return sumMinutes != null ? sumMinutes : 0;
    }
}
